import java.sql.SQLOutput;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LIUYANJIAO
 * Date: 2024-09-18
 * Time: 22:44
 */
public class Add implements IOPeration{
    @Override
    public void work(bookList b) {
        System.out.println("新增图书......");
//        //书架满了
//        if(b.number>=10){
//            System.out.println("书架满了");
//            return;
//        }
//        //构建对象
//        Scanner scanner=new Scanner(System.in);
//        System.out.println("请输入书名：");
//        String name1=scanner.nextLine();
//        System.out.println("请输入作者：");
//        String author1=scanner.nextLine();
//        System.out.println("请输入价钱:");
//        int price1=scanner.nextInt();
//        System.out.println("请输入类型：");
//        String type1=scanner.nextLine();
//        System.out.println("操作完成");
////        System.out.println("请输入状态：");
////        boolean condition1=scanner.hasNextBoolean();
//
//        //判断这本书书架上有没有
////        for (int i = 0; i < b.list.length; i++) {
////            if(name1.equals(b.list[i].bookName)==true){
////                System.out.println("书架上已有这本书");
////                return;
////            }
////        }
//        //新增对象
//        b.list[b.number++]=new book(name1,author1,price1,type1,true);
    }

}
